package xman.com.xmancloudserver.kafka;

import org.redisson.Redisson;
import org.redisson.api.RedissonClient;
import org.redisson.config.Config;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author shu
 * @Date: 2021/10/29/ 19:34
 * @Description redisson配置
 **/
@Configuration
public class RedissonConfig {
    @Bean
    public RedissonClient redissonClient() {
        Config config = new Config();
        config.useSingleServer()
                .setAddress("redis://xman.bt:6379");
//                .setPassword("admin123");
        return Redisson.create(config);
    }
}

